{extend name="index/index" /}
{block name="main"}
{js href="/static/index/js/jquery.min.js"}
<!-- Start right content -->

<!---->
<div class="content-page">

    <div class="content">

        <div class="page-heading">
            <h1><i class='fa fa-table'></i>帖子管理</h1>
            <h3>帖子详情</h3></div>

        <div class="row">

            <div class="col-md-12">
                <div class="widget">
                    <div class="widget-header transparent">
                        <h2><strong>Sortable</strong> Table</h2>
                        <div class="additional-btn">
                            <a href="#" class="hidden reload"><i class="icon-ccw-1"></i></a>
                            <a href="#" class="widget-toggle"><i class="icon-down-open-2"></i></a>
                            <a href="#" class="widget-close"><i class="icon-cancel-3"></i></a>
                        </div>
                    </div>
                    <div class="widget-content">
                        <div class="table-responsive">
                            <table  class="table" border="0">
                                <tr>
                                    <th class="col-md-2">帖子ID号</th>
                                    <td>{$list.post_id}</td>
                                </tr>
                                <tr>
                                    <th>发表人</th>
                                    <td>{$list.username}</td>

                                </tr>
                                <tr>
                                    <th>帖子标题</th>
                                    <td>{$list.postname}</td>

                                </tr>
                                <tr>
                                    <th>帖子发表时间</th>
                                    <td>{$list.posttime}</td>

                                </tr>
                                <tr>
                                    <th>帖子种类</th>
                                    <td>
                                       {if condition="strtoupper($list.posthot) neq '0'"}普通帖子 
                                       {else /}精华帖
                                       {/if}
                                    </td>

                                </tr>
                                <tr>
                                    <th>收获喜欢</th>
                                    <td>{$list.postlove}</td>

                                </tr>
                                <tr>
                                    <th>收获讨厌</th>
                                    <td>{$list.posthit}</td>

                                </tr>
                                <tr>
                                    <th>帖子内容</th>
                                    <td>
                                        <img id="img" class="img-responsive" src='/static/postpic/{$list.artpic}'>
                                        {$list.postcontent}
                                    </td>

                                </tr>
                                
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>




        <!-- Footer Start -->
        <footer>
            Huban Creative &copy; 2014
            <div class="footer-links pull-right">
                <a href="#">About</a><a href="#">Support</a><a href="#">Terms of Service</a><a href="#">Legal</a><a
                    href="#">Help</a><a href="#">Contact Us</a>
            </div>
        </footer>
        
    </div>
    

</div>
<!-- End right content -->

<script type="text/javascript">
    
        var img = $('#img').attr('src');
        // alert(img);
        var imgstr = img.substr('16');
        if(imgstr.length==0){
                $('#img').attr('style','display: none;');
        }
        // /static/postpic/ef7726ba08a0f64821ecd00e781680d11514969225.jpg

</script>

{/block}